from flask import current_app
from logging import handlers

handlers = logging.FileHandler('logs/workf.log')

import datetime


current_app.logger.info("simple page info...")
current_app.logger.warning("warning msg!")
current_app.logger.error("ERROR!!!!!")
app.logger.addHandler(handlers)



